<div class="post">

<?php
$r =$cquery->tagsSearch($tags);
foreach ($r as $row ) {
    $url = $fxn->processURL("page",$row["content_id"],$row["page_title"],$row["direct_link"]);
    ?>
    <div class='cat_list'>
        <h2><a href="<?php echo $url; ?>" alt="<?php echo $row['page_title'];?>" title="<?php echo $row['page_title'];?>"><?php echo $row["page_title"]; ?></a></h2>

    </div>
    <?php
}?>
</div>